package com.sec.otc.odbc.config;


import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 要抽出数据表的配置
 * @author liuyn
 *
 */
@Component
//@PropertySource("classpath:application.properties")
@ConfigurationProperties(prefix="table")
public class TableConfig {
	//key为表名  列为对应的集合
	private Map<String,List<String>> map=new  HashMap<String, List<String>>();
	//轮询周期
	private Map<String,Integer> cycleMap=new  HashMap<String, Integer>();
	//行数函数限制
	private Map<String,Integer> limitRowMap=new  HashMap<String,Integer>();
	//时间戳列
	private Map<String,String> timeStampMap=new HashMap<String, String>();

	//此表名是否发生变化0 (默认值)表名不发生变量 1表名随着年增加，2随着年月增加，3随着年月日增加
	private Map<String,String> tableNameTypeMap=new HashMap<String, String>();
	//各个表的开始起始时间
	private Map<String,String> startTimeMap=new HashMap<String, String>();
	//每条数据的归属id
	private  Map<String,String> belongToIdMap=new HashMap<String, String>();
	
	//列变成行 真实数据值
	private  Map<String,String> valueLineMap=new HashMap<String, String>();
	//列变成行 功能开关
	private  Map<String,String> lineToRowFlagMap=new HashMap<String, String>();
	
	private  List<String> lineList=new ArrayList<String>();
	
	
	public List<String> getLineList() {
		return lineList;
	}

	public void setLineList(List<String> lineList) {
		this.lineList = lineList;
	}

	//字典表
	private Map<String,String> dicMap=new  HashMap<String, String>();
   
	public Map<String, String> getDicMap() {
		return dicMap;
	}

	public void setDicMap(Map<String, String> dicMap) {
		this.dicMap = dicMap;
	}

	public Map<String, String> getBelongToIdMap() {
		return belongToIdMap;
	}

	public void setBelongToIdMap(Map<String, String> belongToIdMap) {
		this.belongToIdMap = belongToIdMap;
	}

	public Map<String, String> getTimeStampMap() {
		return timeStampMap;
	}

	public void setTimeStampMap(Map<String, String> timeStampMap) {
		this.timeStampMap = timeStampMap;
	}

	public Map<String, String> getTableNameTypeMap() {
		return tableNameTypeMap;
	}

	public void setTableNameTypeMap(Map<String, String> tableNameTypeMap) {
		this.tableNameTypeMap = tableNameTypeMap;
	}

	public Map<String, Integer> getCycleMap() {
		return cycleMap;
	}

	public void setCycleMap(Map<String, Integer> cycleMap) {
		this.cycleMap = cycleMap;
	}

	public Map<String, Integer> getLimitRowMap() {
		return limitRowMap;
	}

	public void setLimitRowMap(Map<String, Integer> limitRowMap) {
		this.limitRowMap = limitRowMap;
	}

	public Map<String, List<String>> getMap() {
		return map;
	}

	public void setMap(Map<String, List<String>> map) {
		this.map = map;
	}

	public Map<String, String> getStartTimeMap() {
		return startTimeMap;
	}

	public void setStartTimeMap(Map<String, String> startTimeMap) {
		this.startTimeMap = startTimeMap;
	}

	public Map<String, String> getValueLineMap() {
		return valueLineMap;
	}

	public void setValueLineMap(Map<String, String> valueLineMap) {
		this.valueLineMap = valueLineMap;
	}

	public Map<String, String> getLineToRowFlagMap() {
		return lineToRowFlagMap;
	}

	public void setLineToRowFlagMap(Map<String, String> lineToRowFlagMap) {
		this.lineToRowFlagMap = lineToRowFlagMap;
	}
    

	
	
	
	
	
	
	
	
	
	

}
